package com.lu.stack.common.config;

import com.lu.stack.common.model.constants.SystemApplication;
import com.lu.stack.common.model.domain.ApplicationContextDo;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description 项目启动完成初始化
 * @date 2023/2/1 23:10
 */
@Component
public class SystemCommandLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        SystemApplication.applicationContext = ApplicationContextDo.load();
    }

}
